package com.vortexinfo.demos;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Enumeration;
import java.util.Properties;

public class PropertiesDemo {
	public static void main(String[] args) throws FileNotFoundException, IOException {
		Properties properties = new Properties();
		properties.load(PropertiesDemo.class.getClassLoader().getResourceAsStream("properties.properties"));
		Enumeration<?> name = properties.propertyNames();
		while(name.hasMoreElements())
		{
			String nextString=(String) name.nextElement();
			System.out.println(nextString+"="+properties.getProperty(nextString));
		}
	}
}
